package com.xielaoban.his1.service;

import com.xielaoban.his1.common.ServerResponse;
import com.xielaoban.his1.model.Department;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;


public interface IDepartmentService {
    //添加科室
    ServerResponse add(Department department);

    //查询所有
    ServerResponse selectAll();

    //更新记录
    ServerResponse update(Department department);

    //删除记录
    ServerResponse deleteOneById(Department department);

    //模糊查询根据ID或者名字
    ServerResponse qurryByDeptCodeAndDeptName(String keywords,int pagenum,int pagesize);
}
